package com.yex.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.yex.entity.UserOrderEntity;
import com.yex.entity.vo.UserOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserOrderDao extends BaseMapper<UserOrderEntity> {


    List<UserOrderVo> selectOrderListByUser(Page<UserOrderVo> page,
                                            Integer userId,
                                            Integer orderType,
                                            Integer status);

    List<UserOrderVo> selectOrderListByMerchant(Page<UserOrderVo> page,
                                                Integer merchantId,
                                                Integer orderType,
                                                Integer status);


}
